package com.xialuo.logic.service.impl;

import com.xialuo.logic.entity.User;
import com.xialuo.logic.mapper.UserMapper;
import com.xialuo.logic.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryUser(String userName) {

        return userMapper.queryUser(userName);

    }

    @Override
    public User queryUserById(Long userId) {
        return queryUserById(userId);
    }
}
